package com.pan.api.utils;


import org.w3c.dom.Element;

import java.util.List;

public interface PanApiDocXmlUtil {
    public default  Element findFirst(Element element, String... tagNames){
        return PanApiDocXmlUtilImpl.INSTANCE.findFirst(element,tagNames);
    }

    public default Element findFirst(String... tagNames){
        return PanApiDocXmlUtilImpl.INSTANCE.findFirst(tagNames);
    }

    public default List<Element> find(Element element, String tagName){
        return PanApiDocXmlUtilImpl.INSTANCE.find(element, tagName);
    }

    public default List<Element> find(String tagName){
        return PanApiDocXmlUtilImpl.INSTANCE.find(tagName);
    }

}
